package com.ims.form.FinancialAssistance;

import com.ims.entity.ParttimeEntity;
import com.ims.entity.StudentLoanEntity;
import com.ims.form.FinancialAssistance.parttimeinfo.ParttimeForm;
import com.ims.form.FinancialAssistance.studentloaninfo.StudentLoanForm;

import java.util.ArrayList;
import java.util.List;

public class RetFormAdaptor {
    public static List<StudentLoanForm> StudentLoanEntity_to_StudentLoanForm(List<StudentLoanEntity> rawData){
        List<StudentLoanForm> retList = new ArrayList<>();
        for (int i = 0; i < rawData.size(); i++) {
            retList.add(new StudentLoanForm(rawData.get(i)));
        }
        return retList;
    }
    public static List<ParttimeForm> ParttimeEntity_to_ParttimeForm(List<ParttimeEntity> rawData) {
        List<ParttimeForm> retList = new ArrayList<>();
        for (int i = 0; i < rawData.size(); i++) {
            retList.add(new ParttimeForm(rawData.get(i)));
        }
        return retList;
    }
}
